package com.ruoyi.legal.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.page.Pages;
import com.ruoyi.common.ehance.MyService;
import com.ruoyi.legal.domain.WorkDetail;

/**
 * 工作详情Service接口
 * 
 * @author xwj
 * @date 2025-04-29
 */
public interface IWorkDetailService extends MyService<WorkDetail> {
    /**
     * 查询工作详情
     * 
     * @param id 工作详情主键
     * @return 工作详情
     */
    public WorkDetail selectWorkDetailById(Long id);

    /**
     * 查询工作详情列表
     * 
     * @param workDetail 工作详情
     * @return 工作详情集合
     */
    public List<WorkDetail> selectWorkDetailList(WorkDetail workDetail);

    /**
     * 新增工作详情
     * 
     * @param workDetail 工作详情
     * @return 结果
     */
    public WorkDetail insertWorkDetail(WorkDetail workDetail);

    /**
     * 修改工作详情
     * 
     * @param workDetail 工作详情
     * @return 结果
     */
    public WorkDetail updateWorkDetail(WorkDetail workDetail);

    /**
     * 批量删除工作详情
     * 
     * @param ids 需要删除的工作详情主键集合
     * @return 结果
     */
    public int deleteWorkDetailByIds(Long[] ids);

    /**
     * 删除工作详情信息
     * 
     * @param id 工作详情主键
     * @return 结果
     */
    public int deleteWorkDetailById(Long id);

    int delete(WorkDetail workDetail);

    Pages<WorkDetail> queryPage(WorkDetail workDetail);

    List<WorkDetail> selectWorkDetailListByWorkId(Long workId);

    boolean deleteWorkDetailByWorkId(Long id);

    List<Map> countNum(WorkDetail workDetail);
}
